(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/prefabScript/MyButton.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, 'ed7621LDypJmImLk2rFCl7v', 'MyButton', __filename);
// prefabScript/MyButton.js

'use strict';

var ps = require('PublicScript');
cc.Class({
    extends: cc.Component,

    properties: {
        MyButton: {
            default: null,
            type: cc.Prefab
        },
        ActiveButton: {
            default: null,
            type: cc.Button
        }
    },

    onLoad: function onLoad() {
        // 设置事件
        this.ActiveButton.node.on(cc.Node.EventType.TOUCH_START, function (event) {
            ps.xStop = 0;
            cc.director.loadScene('game');
        }, this);
    },
    start: function start() {}
});

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=MyButton.js.map
        